package com.springboottwo.Controller;

import com.springboottwo.Data;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class JspController {
    Data data=new Data();

    @RequestMapping("/springboot/login")
    public String jsp(Model model){
        data.setPassword("111111");
        data.setUsername("111111");
        model.addAttribute("data",data);
        return "login";
    }
    @RequestMapping("/springboot/LagIn")
    public String LagIn(Model model){
        data.setPassword("111111");
        data.setUsername("111111");
    model.addAttribute("data",data);
    return "LagIn";
}
}